#include <iostream>

using namespace std;


int main()
{
    int x[100],y[100];
    float z[100];
    int n,m,i,j,k;
    std::cout<<"n=";
    std::cin>>n;
    for (i=0;i<n;i++)
    {
        std::cout<<"x["<<i<<"]=";
        std::cin>>x[i];
    }
     for (i=0;i<n;i++)
    {
        std::cout<<"y["<<i<<"]=";
        std::cin>>y[i];
    }
    for (i=0;i<n;i++)
    {
        if (0<x[i]+y[i]<100)
        {
            z[i]=0;
        }
        else
        {
            if (x[i]+y[i]>=100) {z[i]=(x[i]+y[i]);}
            else
            {
                if(x[i]+y[i]<=0)
                {
                    z[i]=(x[i]+y[i])*(x[i]+y[i]);
                }
            }
        }
    }
    for (i=0;i<n;i++)
    {
        std::cout<<z[i]<<" ";
    }
    return 0;
}
